<?php
/**
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_2
 * @license    GNU/GPL
*/
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.view');
 
/**
 * HTML View class for the JobsWorld Component
 *
 * @package    JobsWorld
 */
 
class JobsViewRegister extends JView
{
    function display($tpl = null)
    {
		
		global $mainframe, $option;
        $model = &$this->getModel();
		
		$session =& JFactory::getSession();	
		$job_title = $session->get('job_title');
		if($job_title=='') {		
			$link = 'index.php?option=com_jobs';	
			header('Location: ' . $link);
			exit;
		}
		/*
		$items		= $this->get('data');
		$total		= $this->get('total');
		$pagination	= &$this->get('pagination');
		*/
		//$mainframe->setUserState($option.'filter_state','P');
		//$mainframe->setUserState($option.'filter_order_Dir','DESC');
		//$lists = array();
		//$lists['city'] 			= JHTML::_('list.category',  'city', 'com_city');
		//$lists['catid'] 			= JHTML::_('list.category',  'catid', 'com_jobs');
		//$this->assignRef('lists',		$lists);
        parent::display($tpl);
    }
}
?>